package org.ytor.common.util.jvm;

import lombok.Data;

import java.lang.management.MemoryUsage;

@Data
public class MemoryPoolInfo {
    private String name;
    private String type;
    private MemoryInfo usage;

    public MemoryPoolInfo(String name, String type, MemoryUsage usage) {
        this.name = name;
        this.type = type;
        this.usage = new MemoryInfo(usage);
    }

}
